import type { LoginDto } from './type.d'
import { request } from '@/http/index'

export function login(data: LoginDto) {
  return request<{
    accessToken: string
    refreshToken: string
  }>({
    method: 'post',
    url: '/auth/login',
    data,
  })
}
